/**
 * 作者: wgx
 * 日期: 2024-12-13 17:29:23
 * 备注: 玩家装配配置表,头像,头像框
 */
package com.motu.monstercity.server.game.commondata.system;

import io.vertx.core.json.JsonObject;

public class DecorateMainModel {
    protected int id; // id
    protected int type; // 类型
    protected int iconId; // 图标id,获得干员秘书时自动解锁，配置干员秘书id
    protected int onTime; // 持续时间
    protected int unlockType; // 展示类型
    protected int effectType; // 称号的加成类型
    protected int effectValue; // 称号的加成数值

    public DecorateMainModel() {
    }

    public DecorateMainModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        type = obj.containsKey("type") ? obj.getInteger("type") : 0;
        iconId = obj.containsKey("icon_id") ? obj.getInteger("icon_id") : 0;
        onTime = obj.containsKey("on_time") ? obj.getInteger("on_time") : 0;
        unlockType = obj.containsKey("unlock_type") ? obj.getInteger("unlock_type") : 0;
        effectType = obj.containsKey("effect_type") ? obj.getInteger("effect_type") : 0;
        effectValue = obj.containsKey("effect_value") ? obj.getInteger("effect_value") : 0;
    }

    public int getId() {
        return id;
    }

    public int getType() {
        return type;
    }

    public int getIconId() {
        return iconId;
    }

    public int getOnTime() {
        return onTime;
    }

    public int getUnlockType() {
        return unlockType;
    }

    public int getEffectType() {
        return effectType;
    }

    public int getEffectValue() {
        return effectValue;
    }

}
